package org.jeecg.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.Date;

/**
 *
 * 燃烧收益明细
 *
 */
@Data
@TableName("biz_burn_income_detail")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "biz_burn_income_detail", description = "燃烧收益明细")
public class BurnIncomeDetail {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    // 用户地址
    @ApiModelProperty(value = "用户地址")
    private String address;

    // 收益
    @ApiModelProperty(value = "收益")
    private Long income;

    // 更新时间
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Timestamp timestamp;

    public BurnIncomeDetail() {

    }

    public BurnIncomeDetail(String address, Long income, Timestamp timestamp) {
        this.address = address;
        this.income = income;
        this.timestamp = timestamp;
    }
}
